package shared;

import java.util.ArrayList;

/**
 * class CollectionData holds arrayList for pending transactions
 */
public class CollectionData extends Data {

	public ArrayList<TransactionData> pendingTransactions;

	/**
	 * method to encrypt an arrayList
	 */
	public void xorArraylist() {
		for (TransactionData t : pendingTransactions) {
			t.name = Data.xor(t.name);
			t.recipient = Data.xor(t.recipient);
			t.sender = Data.xor(t.sender);
			t.transferAmount = Data.xor(t.transferAmount);
		}
	}
}
